<?php
declare(strict_types=1);

namespace App\Admin\Request\System\App;

use Newbie\NewbieFormRequest;

/**
 * 应用管理验证数据类 (Update)
 */
class SystemAppUpdateRequest extends NewbieFormRequest {
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize (): bool {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     */
    public function rules (): array {
        return [

            // 应用分组 验证
            'group_id'   => 'require',

            // 应用名称 验证
            'app_name'   => 'require',

            // APP ID 验证
            'app_id'     => 'require',

            // APP SECRET 验证
            'app_secret' => 'require',

        ];
    }
}